<?php

if (!defined('BASEPATH'))
	exit('No direct script access allowed');

class Production extends CI_Controller {

    public function __construct() {
        
		parent::__construct();
		
        if (!isset($this->session->userdata['utilisateur_id']))
            exit('No direct script access allowed');
    }

    public function index() {
        page('Production/index', 'Commerce', null);
    }
	
	public function Gestion_Bat(){
		
	}
	
	public function Gestion_Baj(){
		
	}
	
	public function Gestion_CodeBarre() {
		
	}

    function Image_actif($value, $row) {
        if ($value == 't')
            return '<IMG SRC="' . base_url() . 'assets/img/ok.png" ALT="Actif" TITLE="Actif">';
        else if ($value == 'f')
            return '<IMG SRC="' . base_url() . 'assets/img/nok.png" ALT="Non actif" TITLE="Non actif">';
        else
            return '<IMG SRC="' . base_url() . 'assets/img/nok.png" ALT="Non actif" TITLE="Non actif">';
    }

}